The Scripting app supports a collection of view modifiers that control the visibility, appearance, and behavior of system toolbars, including the navigation bar, bottom bar, and tab bar. These modifiers align closely with SwiftUI's APIs and provide declarative control over toolbar configuration at the view level.
These modifiers control the visibility of various interface bars on a per-view basis.
Visibilityautomatic: Defers visibility decision to the system.hidden: Explicitly hides the bar.visible: Forces the bar to be shown.Adds a custom menu that appears when tapping the navigation title. This feature is often used to expose contextual actions relevant to the current screen or view hierarchy.
Specifies the preferred background style of toolbars. You can apply a color, material, or gradient background, and optionally limit the scope to specific bars.
bars (optional)bars is omitted, the style applies automatically based on system behavior.Controls the visibility of the toolbar background. You can use this to make toolbars appear translucent or completely hidden in specific contexts.
visibility: A value of "automatic", "visible", or "hidden".bars (optional): Targeted bars for applying the visibility change. If omitted, all toolbars are affected.Specifies the color scheme used by toolbars and their contents.
ColorSchemelight: Enforces a light appearance.dark: Enforces a dark appearance.null: Resets to the system default.The bars field limits the color scheme application to selected bars, such as navigationBar or tabBar.
Controls how the navigation bar title is displayed.
ToolbarTitleDisplayModeautomatic: The system chooses between large or inline style based on context.large: Displays a large navigation title when appropriate.inline: Displays the title inline with the navigation bar.inlineLarge: Enables inline layout while preserving large title characteristics (e.g., custom styling).toolbarBackground, toolbarColorScheme, and toolbarBackgroundVisibility accept scoped configuration via the bars field, enabling precise visual adjustments.toolbarBackgroundVisibility.